package com.dream.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: web入口
 * @author: wangxuemeng
 * @create: 2018-04-07 17:29
 **/
@Controller

public class IndexController {

    @RequestMapping({"/","index"})
    public String index(Model model){
        String s = "everybody";
        model.addAttribute("name",s);
        return "index";
    }
}
